package com.apptech.slidemenudemo;

import java.util.ArrayList;

import android.content.res.TypedArray;
import android.os.Bundle;
import android.support.v4.app.ActionBarDrawerToggle;
import android.support.v4.widget.DrawerLayout;
import android.support.v7.app.ActionBarActivity;
import android.widget.ListView;

import com.apptech.slidemenudemo.adapter.NavDrawerListAdapter;
import com.apptech.slidemenudemo.model.NavDrawerItem;

public class MainActivity extends ActionBarActivity {

	
	private DrawerLayout mDrawerLayout;
	private ListView mDrawListView;
	private ActionBarDrawerToggle mDrawerToggle;
	
	//nav draaw tittle
	private CharSequence mDrawTittle;
	
	//use to store app tittle
	private CharSequence mTittle;
	
	// slide menu items
	private String[] navMenuTitles;
    private TypedArray navMenuIcons;
 
    private ArrayList<NavDrawerItem> navDrawerItems;
    private NavDrawerListAdapter adapter;
 
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main);
		mTittle=mDrawTittle = getTitle();
		
		// load slide menu items
		navMenuTitles=getResources().getStringArray(R.array.nav_drawer_items);
		// load slide menu icons
		navMenuIcons=getResources().obtainTypedArray(R.array.nav_drawer_icons);
		
		
	}

}
